package com.example.pufang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.PageParamRequest;
import com.example.pufang.pojo.Admin;
import com.example.pufang.vo.PageListVo;

import java.util.Map;

public interface AdminService extends IService<Admin> {

    Map<String, Object> login(Admin admin);

    PageListVo getListByPage(PageParamRequest pageParamRequest, String searchName);

    Boolean ban(Admin admin);

    Boolean cancelBan(Admin admin);

    Boolean add(Admin admin);

    Admin getAdminByName(String username);

}
